<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <form action="./form.reset().html">
    <input type="text">
  </form>
  <button>reset</button>

  <script>
    const form = document.querySelector('form')
    document.querySelector('button').addEventListener('click', () => {
      // 重置表单
      form.reset()
    })
  </script>
</body>

</html>